package com.gqj.meter.domain;

import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报警配置对象 warning_config
 *
 * @author lxq
 * @date lxq-02-10
 */
public class WarningConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long configId;

    /**
     * 配置类型
     * 01：电能表
     * 03：互感器
     * 09：采集终端
     */
    @ApiModelProperty("配置类型")
    private String configType;

    /**
     * 下限
     */
    @ApiModelProperty("下限")
    private int lowerLimit;

    /**
     * 上限
     */
    @ApiModelProperty("上限")
    private int upperLimit;

    /**
     * 是否开启报警。1-是，0-否
     */
    @ApiModelProperty("是否开启报警")
    private String isOpen;

    public void setConfigId(Long configId) {
        this.configId = configId;
    }

    public Long getConfigId() {
        return configId;
    }

    public void setConfigType(String configType) {
        this.configType = configType;
    }

    public String getConfigType() {
        return configType;
    }

    public void setLowerLimit(int lowerLimit) {
        this.lowerLimit = lowerLimit;
    }

    public int getLowerLimit() {
        return lowerLimit;
    }

    public void setUpperLimit(int upperLimit) {
        this.upperLimit = upperLimit;
    }

    public int getUpperLimit() {
        return upperLimit;
    }

    public void setIsOpen(String isOpen) {
        this.isOpen = isOpen;
    }

    public String getIsOpen() {
        return isOpen;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("configId", getConfigId())
                .append("configType", getConfigType())
                .append("lowerLimit", getLowerLimit())
                .append("upperLimit", getUpperLimit())
                .append("isOpen", getIsOpen())
                .toString();
    }
}
